﻿@{
    BrnMall.Manager.Domain.Messages.CreateDesigns Designmodel = (BrnMall.Manager.Domain.Messages.CreateDesigns)ViewData["model"];
}

@section header{
    <title>创意列表</title>
    <link type="text/css" rel="stylesheet" href="/admin_store/css/site.css" />
    <script type="text/javascript" src="/admin_store/scripts/jquery.js"></script>
    <script type="text/javascript" src="/admin_store/scripts/showlist.js"></script>
    <script type="text/javascript" src="/admin_store/scripts/jquery.validate.js"></script>
    <script type="text/javascript" src="/admin_store/scripts/jquery.validate.unobtrusive.js"></script>
    <link type="text/css" rel="stylesheet" href="/components/webuploader/webuploader.css" />
    <script type="text/javascript" src="/components/webuploader/webuploader.js"></script>
    <link href="/components/jbox/Skins/Default/jbox.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="/components/jbox/jquery.jBox-2.3.min.js"></script>
    <script type="text/javascript" src="/admin_store/scripts/showlist.js"></script>
    <script type="text/javascript" src="/components/my97datepicker/WdatePicker.js"></script>
    <script type="text/javascript" src="/admin_store/scripts/selectlist.js"></script>
    <script>
        $(function () {
            $('#btn').click(function () {
                $.jBox.confirm("您确定要修改创意名称？", "提示", function (v, h, f) {
                    if (v == "ok") {
                        $.post("@Url.Action("DesignEdit")", {DesignID:@Designmodel.DesignID, DesignName: $('#DesignName').val() }, function (data) {
                            if (data == "ok") {
                                alert("修改成功");
                                $('#DesignName').val('');
                                window.location.reload();
                            } else {
                                alert("修改失败。");
                            }
                        });
                    } else if (v == 'cancel') {
                        //取消
                    }
                });
            });
        });
    </script>
}
@section body{
    <h1 class="rightH1">
        微信小程序 &gt; 留言管理 &gt; <span class="rightH1-cur">创意定制</span>

        <div class="right">
            <div class="clear"></div>
        </div>
        <div class="clear"></div>
    </h1>
    <div class="table_top"></div>
    <div align="left" id="left" style="width:250px;height:400px;border:1px solid #f95e01;margin-left: 15px;text-align:center;">

        <font size="3" color="#f95e01"><div style="margin:0 auto;text-align:center;margin-top:30px;">留言小程序显示自定义名称</div></font>
        <div style="margin:30px auto; width: 200px;">
            @if (Designmodel.DesignName == null || Designmodel.DesignName == "")
            {
                <input type="text" id="DesignName" style="width: 200px;height: 30px;text-align:center;" value="创意设计" />
            }
            else
            {
                <input type="text" id="DesignName" style="width:200px;height:30px;text-align:center;" value="@Designmodel.DesignName" />
            }
        </div>
        <div style="margin-left:10px;margin-top:10px;color:#b8b0b0">说明：不填写默认名称是：“创意设计”</div>
        <br /><br />
		
		<br /><br />
		<button id="btn" class="clear button">确定</button>

    </div>

    <div align="left" id="left" style="width:250px;height:400px;border:2px solid steelblue;text-align:center; position: absolute;left:320px;top:48px; text-align:left; ">
        <img src="~/admin_store/images/cyimg.png" style="width:250px;height:385px;margin-top:10px;" />
    </div>
    <div class="table_bottom"></div>
}
